from Ilockloc as b where b.ilockLocTime in (select max(a.ilockLocTime) from Ilockloc as a where a.ilockInfoNumber=4) and b.ilockInfoNumber=4